//
//  AppModel.m
//  KVC-KVO-Demo
//
//  Created by qianfeng001 on 15/8/3.
//  Copyright (c) 2015年 ZhangYunguang. All rights reserved.
//

#import "AppModel.h"

@implementation AppModel

-(void)print{
    NSLog(@"name:%@  count:%d",_name,_count);
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    //kvc赋值的时候  找不到key对应的属性会调用
}


-(id)valueForUndefinedKey:(NSString *)key{
    //防止kvc获取值的时候崩溃
    return nil;
}
@end
